package com.hjj.services;

import com.hjj.beans.Stu;
import org.springframework.stereotype.Service;

@Service
public class StuServicesImp implements StuServices{
    @Override
    public void doing() {
        System.out.println("StuServicesImp....................doing");
    }

    @Override
    public Stu add() {
        return new Stu(1000, "hjj");
    }

    @Override
    public void edit() {
        int i = 1/0;
    }

    @Override
    public int del(int a, int b) {
        return a + b;
    }

    @Override
    public void fun1() {
        System.out.println("StuServicesImp-fun1");
    }

    @Override
    public void fun2() {
        System.out.println("StuServicesImp-fun2");
    }

    @Override
    public void fun3() {
        System.out.println("StuServicesImp-fun3");
    }

    @Override
    public void fun4() {
        System.out.println("StuServicesImp-fun4");
    }

    @Override
    public void fun5() {
        System.out.println("StuServicesImp-fun5");
    }
}
